<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <style type="text/css">
    * {
      margin: 0;
      padding: 0;
    }

    ul {
      list-style: none;
    }

    img {
      display: block;
      border: 0;
    }

    .wrapper {
      width: 752px;
      border: 1px solid #ccc;
      padding: 10px 0 0 10px;
      font-family: arial;
      overflow: hidden;
      margin: 100px auto;

    }

    .wrapper li {
      float: left;
      margin: 0 10px 10px 0;
      width: 178px;
      height: 125px;
      overflow: hidden;
      position: relative;
    }

    .wrapper li div, .wrapper li p {
      width: 178px;
      height: 25px;
      position: absolute;
      font-size: 14px;
      text-align: center;
      line-height: 25px;
      color: white;
      left: 0;
      bottom: -25px;
      /*_bottom: -26px;*/
    }

    .wrapper li div {
      background-color: #000;
    }

    .wrapper li p {
      background: url(images/bg.png) no-repeat 5px 0;
    }

  </style>
  <script src="../../../Resource/外部库/jquery-3.2.1.min.js"></script>
  <script>
    $(function () {
      var div = $("<div></div>"), speed = 388, $p = $(".wrapper p");
      qq;
      $(".wrap li")
        .append("<div></div><p>全栈</p>")
        .children("div")
        .fadeTo(500, 0.5)
        .next("p")
        .each(function (index, ele) {
          $(this).css("background-position", "5px -" + (index * 25) + "px");
        });

      $(".wrapper li").hover(function () {
        $(this).children("div,p").stop().animate({"bottom": 0}, speed);
      }, function () {
        $(this).children("div,p").stop().animate({"bottom": -26}, speed);
      });

    });

  </script>
</head>
<body>
<div class="wrapper">
  <ul>
    <li><a href="###"><img src="images/01.jpg" alt=""/></a>
      <p>百度一下，你就知道</p></li>
    <li><a href="###"><img src="images/02.jpg" alt=""/></a>
      <p>百度一下，你就知道</p></li>
    <li><a href="###"><img src="images/03.jpg" alt=""/></a>
      <p>百度一下，你就知道</p></li>
    <li><a href="###"><img src="images/04.jpg" alt=""/></a>
      <p>百度一下，你就知道</p></li>
    <li><a href="###"><img src="images/05.jpg" alt=""/></a>
      <p>百度一下，你就知道</p></li>
    <li><a href="###"><img src="images/06.jpg" alt=""/></a>
      <p>百度一下，你就知道</p></li>
    <li><a href="###"><img src="images/07.jpg" alt=""/></a>
      <p>百度一下，你就知道</p></li>
    <li><a href="###"><img src="images/08.jpg" alt=""/></a>
      <p>百度一下，你就知道</p></li>
  </ul>
</div>
</body>
</html>